package com.han.cloud.service;

import com.han.cloud.dto.TradeDTO;
import com.han.cloud.dto.WrapperResponse;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixProperty;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author hanky
 * @date 2021/11/11
 */
@Component
@FeignClient(value = "han-payment-cloud", fallback = FeignClientFallbackService.class)
public interface FeignClientPaymentService {

    @PostMapping("/getTrade")
    public WrapperResponse<TradeDTO> getTrade(String id);
}
